package com.uw.uwrpc.core.registry.impl;

import com.uw.uwrpc.core.api.RegistryCenter;
import com.uw.uwrpc.core.meta.InstanceMeta;
import com.uw.uwrpc.core.meta.ServiceMeta;

import java.util.List;

public class StatisticRegistryCenter implements RegistryCenter {
    private final List<InstanceMeta> instanceMetas;

    public StatisticRegistryCenter(List<InstanceMeta> instanceMetas) {
        this.instanceMetas = instanceMetas;
    }


    @Override
    public List<InstanceMeta> fetchAll(ServiceMeta serviceMeta) {
        return instanceMetas;
    }
}
